/**
 * @file car_sg90.h
 * @brief Header file for SG90 servo motor control functions and definitions.
 *
 * This file contains the function declarations and macro definitions for controlling
 * the SG90 servo motor. It provides the necessary interfaces for initializing the servo,
 * setting the angle, and controlling the motor's position with high precision.
 *
 * @author Maker Studio
 * @license Apache 2.0
 *
 * This code is open-sourced under the Apache 2.0 license. When using open-source libraries
 * or code, please ensure to acknowledge the original authors and sources.
 */

#ifndef CAR_SG90_H
#define CAR_SG90_H

#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "pinctrl.h"
#include "common_def.h"
#include "soc_osal.h"
#include "test_suite_log.h"
#include "systick.h"

#include "ohos_init.h"
#include "cmsis_os2.h"
#include "iot_gpio.h"
#include <unistd.h>
#include "iot_pwm.h"
#include "iot_errno.h"
#include "iot_watchdog.h"

#include "iot_gpio_ex.h"


#define COUNT 10 
#define BSP_SG92R 2
#define FREQ_TIME 20000





void SetAngle(void);
void RegressMiddle(void);
void EngineTurnRight(void);
void EngineTurnRight_half(void);
void EngineTurnLeft_half(void);
void EngineTurnLeft(void);

#endif
